package cn.ex;


public class Average extends Sum {
    int n;

    void show(){
        System.out.println("super.n = " + super.n);
        System.out.println("this.n = " + n);
    }

    @Override
    float f() {
        float c;
        super.n = n;
        c = super.f();
        return c / n;
    }

    float g() {
        float c;
        c = super.f();
        return c / 2;
    }
}
